/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkg5211100027;

/**
 *
 * @author anggit
 */

public class mahasiswa extends orang {

    private String nim;
    private String kehadiran;

    public mahasiswa(String nama, String alamatAsal, String nim, String kehadiran) {
        super(nama, alamatAsal);
        this.nim = nim;
        this.kehadiran = kehadiran;
    }

    public String toString() {
        return (super.toString() + "\nNIM : " + nim + "\nKehadiran :" + kehadiran);
    }
}